home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / SETUP / US / CBUILDER / DATA.Z / EXTCTRLS.HPP < prev    next >
C/C++ Source or Header  |  1997-02-13  |  20KB  |  603 lines

  1. //----------------------------------------------------------------------------
  2. // ExtCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: ExtCtrls.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef ExtCtrlsHPP
  6. #define ExtCtrlsHPP
  7. //----------------------------------------------------------------------------
  8. #include <StdCtrls.hpp>
  9. #include <Graphics.hpp>
  10. #include <Menus.hpp>
  11. #include <Forms.hpp>
  12. #include <Controls.hpp>
  13. #include <Classes.hpp>
  14. #include <SysUtils.hpp>
  15. #include <Windows.hpp>
  16. #include <Messages.hpp>
  17. #include <System.hpp>
  18. #pragma warn -par
  19. #pragma warn -hid 
  20. #pragma warn -inl
  21.  
  22. namespace Extctrls
  23. {
  24. //-- type declarations -------------------------------------------------------
  25. enum TShapeType { stRectangle, stSquare, stRoundRect, stRoundSquare, stEllipse, stCircle };
  26.  
  27. class __declspec(delphiclass) TShape;
  28. class __declspec(pascalimplementation) TShape : public Controls::TGraphicControl
  29. {
  30.     typedef Controls::TGraphicControl inherited;
  31.     
  32. private:
  33.     TShapeType FShape;
  34.     Byte FReserved;
  35.     Graphics::TPen* FPen;
  36.     Graphics::TBrush* FBrush;
  37.     void __fastcall SetBrush(Graphics::TBrush* Value);
  38.     void __fastcall SetPen(Graphics::TPen* Value);
  39.     void __fastcall SetShape(TShapeType Value);
  40.     
  41. protected:
  42.     virtual void __fastcall Paint(void);
  43.     
  44. public:
  45.     __fastcall virtual TShape(Classes::TComponent* AOwner);
  46.     __fastcall virtual ~TShape(void);
  47.     
  48. __published:
  49.     void __fastcall StyleChanged(System::TObject* Sender);
  50.     __property Graphics::TBrush* Brush = {read=FBrush, write=SetBrush, nodefault};
  51.     __property DragCursor ;
  52.     __property DragMode ;
  53.     __property Enabled ;
  54.     __property ParentShowHint ;
  55.     __property Graphics::TPen* Pen = {read=FPen, write=SetPen, nodefault};
  56.     __property TShapeType Shape = {read=FShape, write=SetShape, default=0};
  57.     __property ShowHint ;
  58.     __property Visible ;
  59.     __property OnDragDrop ;
  60.     __property OnDragOver ;
  61.     __property OnEndDrag ;
  62.     __property OnMouseDown ;
  63.     __property OnMouseMove ;
  64.     __property OnMouseUp ;
  65.     __property OnStartDrag ;
  66. };
  67.  
  68. class __declspec(delphiclass) TPaintBox;
  69. class __declspec(pascalimplementation) TPaintBox : public Controls::TGraphicControl
  70. {
  71.     typedef Controls::TGraphicControl inherited;
  72.     
  73. private:
  74.     Classes::TNotifyEvent FOnPaint;
  75.     
  76. protected:
  77.     virtual void __fastcall Paint(void);
  78.     
  79. public:
  80.     __fastcall virtual TPaintBox(Classes::TComponent* AOwner);
  81.     __property Canvas ;
  82.     
  83. __published:
  84.     __property Align ;
  85.     __property Color ;
  86.     __property DragCursor ;
  87.     __property DragMode ;
  88.     __property Enabled ;
  89.     __property Font ;
  90.     __property ParentColor ;
  91.     __property ParentFont ;
  92.     __property ParentShowHint ;
  93.     __property PopupMenu ;
  94.     __property ShowHint ;
  95.     __property Visible ;
  96.     __property OnClick ;
  97.     __property OnDblClick ;
  98.     __property OnDragDrop ;
  99.     __property OnDragOver ;
  100.     __property OnEndDrag ;
  101.     __property OnMouseDown ;
  102.     __property OnMouseMove ;
  103.     __property OnMouseUp ;
  104.     __property Classes::TNotifyEvent OnPaint = {read=FOnPaint, write=FOnPaint};
  105.     __property OnStartDrag ;
  106. public:
  107.     /* TGraphicControl.Destroy */ __fastcall virtual ~TPaintBox(void) { }
  108.     
  109. };
  110.  
  111. class __declspec(delphiclass) TImage;
  112. class __declspec(pascalimplementation) TImage : public Controls::TGraphicControl
  113. {
  114.     typedef Controls::TGraphicControl inherited;
  115.     
  116. private:
  117.     Graphics::TPicture* FPicture;
  118.     bool FAutoSize;
  119.     bool FStretch;
  120.     bool FCenter;
  121.     Byte FReserved;
  122.     Graphics::TCanvas* __fastcall GetCanvas(void);
  123.     void __fastcall PictureChanged(System::TObject* Sender);
  124.     void __fastcall SetAutoSize(bool Value);
  125.     void __fastcall SetCenter(bool Value);
  126.     void __fastcall SetPicture(Graphics::TPicture* Value);
  127.     void __fastcall SetStretch(bool Value);
  128.     
  129. protected:
  130.     virtual HPALETTE __fastcall GetPalette(void);
  131.     virtual void __fastcall Paint(void);
  132.     
  133. public:
  134.     __fastcall virtual TImage(Classes::TComponent* AOwner);
  135.     __fastcall virtual ~TImage(void);
  136.     __property Graphics::TCanvas* Canvas = {read=GetCanvas, nodefault};
  137.     
  138. __published:
  139.     __property Align ;
  140.     __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=0};
  141.     __property bool Center = {read=FCenter, write=SetCenter, default=0};
  142.     __property DragCursor ;
  143.     __property DragMode ;
  144.     __property Enabled ;
  145.     __property ParentShowHint ;
  146.     __property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture, nodefault};
  147.     __property PopupMenu ;
  148.     __property ShowHint ;
  149.     __property bool Stretch = {read=FStretch, write=SetStretch, default=0};
  150.     __property Visible ;
  151.     __property OnClick ;
  152.     __property OnDblClick ;
  153.     __property OnDragDrop ;
  154.     __property OnDragOver ;
  155.     __property OnEndDrag ;
  156.     __property OnMouseDown ;
  157.     __property OnMouseMove ;
  158.     __property OnMouseUp ;
  159.     __property OnStartDrag ;
  160. };
  161.  
  162. enum TBevelStyle { bsLowered, bsRaised };
  163.  
  164. enum TBevelShape { bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine };
  165.  
  166. class __declspec(delphiclass) TBevel;
  167. class __declspec(pascalimplementation) TBevel : public Controls::TGraphicControl
  168. {
  169.     typedef Controls::TGraphicControl inherited;
  170.     
  171. private:
  172.     TBevelStyle FStyle;
  173.     TBevelShape FShape;
  174.     void __fastcall SetStyle(TBevelStyle Value);
  175.     void __fastcall SetShape(TBevelShape Value);
  176.     
  177. protected:
  178.     virtual void __fastcall Paint(void);
  179.     
  180. public:
  181.     __fastcall virtual TBevel(Classes::TComponent* AOwner);
  182.     
  183. __published:
  184.     __property Align ;
  185.     __property ParentShowHint ;
  186.     __property TBevelShape Shape = {read=FShape, write=SetShape, default=0};
  187.     __property ShowHint ;
  188.     __property TBevelStyle Style = {read=FStyle, write=SetStyle, default=0};
  189.     __property Visible ;
  190. public:
  191.     /* TGraphicControl.Destroy */ __fastcall virtual ~TBevel(void) { }
  192.     
  193. };
  194.  
  195. class __declspec(delphiclass) TTimer;
  196. class __declspec(pascalimplementation) TTimer : public Classes::TComponent
  197. {
  198.     typedef Classes::TComponent inherited;
  199.     
  200. private:
  201.     bool FEnabled;
  202.     Byte FReserved;
  203.     Cardinal FInterval;
  204.     HWND FWindowHandle;
  205.     Classes::TNotifyEvent FOnTimer;
  206.     void __fastcall UpdateTimer(void);
  207.     void __fastcall SetEnabled(bool Value);
  208.     void __fastcall SetInterval(Cardinal Value);
  209.     void __fastcall SetOnTimer(Classes::TNotifyEvent Value);
  210.     void __fastcall WndProc(Messages::TMessage &Msg);
  211.     
  212. protected:
  213.     virtual void __fastcall Timer(void);
  214.     
  215. public:
  216.     __fastcall virtual TTimer(Classes::TComponent* AOwner);
  217.     __fastcall virtual ~TTimer(void);
  218.     
  219. __published:
  220.     __property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
  221.     __property Cardinal Interval = {read=FInterval, write=SetInterval, default=1000};
  222.     __property Classes::TNotifyEvent OnTimer = {read=FOnTimer, write=SetOnTimer};
  223. };
  224.  
  225. enum TPanelBevel { bvNone, bvLowered, bvRaised };
  226.  
  227. typedef int TBevelWidth;
  228.  
  229. typedef int TBorderWidth;
  230.  
  231. class __declspec(delphiclass) TCustomPanel;
  232. class __declspec(pascalimplementation) TCustomPanel : public Controls::TCustomControl
  233. {
  234.     typedef Controls::TCustomControl inherited;
  235.     
  236. private:
  237.     TPanelBevel FBevelInner;
  238.     TPanelBevel FBevelOuter;
  239.     TBevelWidth FBevelWidth;
  240.     TBorderWidth FBorderWidth;
  241.     TFormBorderStyle FBorderStyle;
  242.     bool FFullRepaint;
  243.     bool FLocked;
  244.     Classes::TNotifyEvent FOnResize;
  245.     TAlignment FAlignment;
  246.     MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
  247.     HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
  248.     MESSAGE void __fastcall CMIsToolControl(Messages::TMessage &Message);
  249.     HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
  250.     void __fastcall SetAlignment(Classes::TAlignment Value);
  251.     void __fastcall SetBevelInner(TPanelBevel Value);
  252.     void __fastcall SetBevelOuter(TPanelBevel Value);
  253.     void __fastcall SetBevelWidth(TBevelWidth Value);
  254.     void __fastcall SetBorderWidth(TBorderWidth Value);
  255.     void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
  256.     void __fastcall ReadData(Classes::TReader* Reader);
  257.     
  258. protected:
  259.     virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
  260.     virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
  261.     virtual void __fastcall Paint(void);
  262.     virtual void __fastcall Resize(void);
  263.     __property Classes::TAlignment Alignment = {re